3.1.76 \(\int \frac {(e x)^m (a c-b c x)}{a+b x} \, dx\) [76]

Optimal. Leaf size=52 \[ -\frac {c (e x)^{1+m}}{e (1+m)}+\frac {2 c (e x)^{1+m} \, _2F_1\left (1,1+m;2+m;-\frac {b x}{a}\right )}{e (1+m)} \]

[Out]

-c*(e*x)^(1+m)/e/(1+m)+2*c*(e*x)^(1+m)*hypergeom([1, 1+m],[2+m],-b*x/a)/e/(1+m)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 52, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {81, 66} \begin {gather*} \frac {2 c (e x)^{m+1} \, _2F_1\left (1,m+1;m+2;-\frac {b x}{a}\right )}{e (m+1)}-\frac {c (e x)^{m+1}}{e (m+1)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((e*x)^m*(a*c - b*c*x))/(a + b*x),x]

[Out]

-((c*(e*x)^(1 + m))/(e*(1 + m))) + (2*c*(e*x)^(1 + m)*Hypergeometric2F1[1, 1 + m, 2 + m, -((b*x)/a)])/(e*(1 +
m))

Rule 66

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[c^n*((b*x)^(m + 1)/(b*(m + 1)))*Hypergeometr
ic2F1[-n, m + 1, m + 2, (-d)*(x/c)], x] /; FreeQ[{b, c, d, m, n}, x] &&  !IntegerQ[m] && (IntegerQ[n] || (GtQ[
c, 0] &&  !(EqQ[n, -2^(-1)] && EqQ[c^2 - d^2, 0] && GtQ[-d/(b*c), 0])))

Rule 81

Int[((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Simp[b*(c + d*x)^
(n + 1)*((e + f*x)^(p + 1)/(d*f*(n + p + 2))), x] + Dist[(a*d*f*(n + p + 2) - b*(d*e*(n + 1) + c*f*(p + 1)))/(
d*f*(n + p + 2)), Int[(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n, p}, x] && NeQ[n + p + 2,
0]

Rubi steps

\begin {align*} \int \frac {(e x)^m (a c-b c x)}{a+b x} \, dx &=-\frac {c (e x)^{1+m}}{e (1+m)}+(2 a c) \int \frac {(e x)^m}{a+b x} \, dx\\ &=-\frac {c (e x)^{1+m}}{e (1+m)}+\frac {2 c (e x)^{1+m} \, _2F_1\left (1,1+m;2+m;-\frac {b x}{a}\right )}{e (1+m)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.04, size = 32, normalized size = 0.62 \begin {gather*} \frac {c x (e x)^m \left (-1+2 \, _2F_1\left (1,1+m;2+m;-\frac {b x}{a}\right )\right )}{1+m} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((e*x)^m*(a*c - b*c*x))/(a + b*x),x]

[Out]

(c*x*(e*x)^m*(-1 + 2*Hypergeometric2F1[1, 1 + m, 2 + m, -((b*x)/a)]))/(1 + m)

________________________________________________________________________________________

Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {\left (e x \right )^{m} \left (-b c x +a c \right )}{b x +a}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*x)^m*(-b*c*x+a*c)/(b*x+a),x)

[Out]

int((e*x)^m*(-b*c*x+a*c)/(b*x+a),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x)^m*(-b*c*x+a*c)/(b*x+a),x, algorithm="maxima")

[Out]

-integrate((b*c*x - a*c)*(x*e)^m/(b*x + a), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x)^m*(-b*c*x+a*c)/(b*x+a),x, algorithm="fricas")

[Out]

integral(-(b*c*x - a*c)*(x*e)^m/(b*x + a), x)

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 1.51, size = 150, normalized size = 2.88 \begin {gather*} \frac {c e^{m} m x x^{m} \Phi \left (\frac {b x e^{i \pi }}{a}, 1, m + 1\right ) \Gamma \left (m + 1\right )}{\Gamma \left (m + 2\right )} + \frac {c e^{m} x x^{m} \Phi \left (\frac {b x e^{i \pi }}{a}, 1, m + 1\right ) \Gamma \left (m + 1\right )}{\Gamma \left (m + 2\right )} - \frac {b c e^{m} m x^{2} x^{m} \Phi \left (\frac {b x e^{i \pi }}{a}, 1, m + 2\right ) \Gamma \left (m + 2\right )}{a \Gamma \left (m + 3\right )} - \frac {2 b c e^{m} x^{2} x^{m} \Phi \left (\frac {b x e^{i \pi }}{a}, 1, m + 2\right ) \Gamma \left (m + 2\right )}{a \Gamma \left (m + 3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x)**m*(-b*c*x+a*c)/(b*x+a),x)

[Out]

c*e**m*m*x*x**m*lerchphi(b*x*exp_polar(I*pi)/a, 1, m + 1)*gamma(m + 1)/gamma(m + 2) + c*e**m*x*x**m*lerchphi(b
*x*exp_polar(I*pi)/a, 1, m + 1)*gamma(m + 1)/gamma(m + 2) - b*c*e**m*m*x**2*x**m*lerchphi(b*x*exp_polar(I*pi)/
a, 1, m + 2)*gamma(m + 2)/(a*gamma(m + 3)) - 2*b*c*e**m*x**2*x**m*lerchphi(b*x*exp_polar(I*pi)/a, 1, m + 2)*ga
mma(m + 2)/(a*gamma(m + 3))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x)^m*(-b*c*x+a*c)/(b*x+a),x, algorithm="giac")

[Out]

integrate(-(b*c*x - a*c)*(x*e)^m/(b*x + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\left (a\,c-b\,c\,x\right )\,{\left (e\,x\right )}^m}{a+b\,x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((a*c - b*c*x)*(e*x)^m)/(a + b*x),x)

[Out]

int(((a*c - b*c*x)*(e*x)^m)/(a + b*x), x)

________________________________________________________________________________________